
<template>
  <el-row class="all show-box">  
    <el-col :span="5" :offset="2"  class="icon">
        <el-icon color="blue" size="50" v-if="props.itemInfo.icon=='user'"><User /></el-icon>
        <el-icon color="orange" size="50" v-else-if="props.itemInfo.icon=='connection'"><Connection /></el-icon>
        <el-icon color="purple" size="50" v-else-if="props.itemInfo.icon=='discount'"><Discount /></el-icon>
        <el-icon color="yellowgreen" size="50" v-else="props.itemInfo.icon=='useditPener'"><EditPen /></el-icon>
    </el-col>
    <el-col :span="15" :offset="2" class="text">
      <el-row class="title">
        <el-col :span="20" :offset="2">{{ props.itemInfo.title }}:</el-col>
      </el-row>
      <el-row class="num">
        <el-col :span="20" :offset="2">{{ props.itemInfo.num }}</el-col>
      </el-row>
    </el-col>
  </el-row>
</template>

<script setup lang="ts">
import { User,Discount,Connection,EditPen } from '@element-plus/icons-vue'
const props = defineProps(['itemInfo'])
</script>

<style lang="less" scoped>
.all{
    background-color: #fff;
    border-radius: 6px;
    // box-shadow:0px 12px 32px 4px rgba(0, 0, 0, .04), 0px 8px 20px rgba(0, 0, 0, .08);
    text-align:center;
}
// .all:hover{
//   transform:scale(1.1);
// }
.el-row:first-child>.el-col{
    height: 100%;
}
.icon{
    line-height: 200px;
}
.title{
  margin-top: 30px;
  line-height: 60px;
  font-size: 20px;
  color: #555555;
}
.num{
  margin-bottom: 30px;
  line-height: 60px;
  font-size: 35px;
  font-weight: bold;
  color: #6383ff;
}
</style>
